package com.ruoyi.dynamic.model.pojo.request.app;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Getter
@Setter
@Schema(description = "APP-发布歌曲投票")
public class AppRoomVoteMusicAddRequest {

    @Schema(description = "投票id")
    private Long id = 0L;

    @Schema(description = "房间id")
    @NotNull(message = "房间id不能为空")
    private Long roomId;

    @Schema(description = "投票标题")
    @NotBlank(message = "投票标题不能为空")
    private String title;

    @Schema(description = "投票时长")
    @NotNull(message = "投票时长不能为空")
    private Integer voteTime;

    @Schema(description = "房间投票资源")
    @NotEmpty(message = "房间投票资源不能为空")
    @Size(min = 2, message = "房间投票资源最少两条记录")
    private List<AppRoomVoteMusicResourceAddRequest> resourceAddRequests;

    @Schema(description = "是否存模板 0不存1存")
    private Integer isTemplate = 0;


}
